import request from '/@/utils/request';

// 查询微门禁 门禁卡列表
export function listCard(query?: Object) {
  return request({
    url: '/module/wmj/card/list',
    method: 'get',
    params: query
  })
}

// 查询微门禁 门禁卡详细
export function getCard(id?: number) {
  return request({
    url: '/module/wmj/card/' + id,
    method: 'get'
  })
}

// 新增微门禁 门禁卡
export function addCard(data?: Object) {
  return request({
    url: '/module/wmj/card',
    method: 'post',
    data
  })
}

// 修改微门禁 门禁卡
export function updateCard(data?: Object) {
  return request({
    url: '/module/wmj/card',
    method: 'put',
    data
  })
}

// 删除微门禁 门禁卡
export function delCard(id?: number) {
  return request({
    url: '/module/wmj/card/' + id,
    method: 'delete'
  })
}

// 导出微门禁 门禁卡
export function exportCard(query?: Object) {
  return request({
    url: '/module/wmj/card/export',
    method: 'get',
    params: query
  })
}
